package com.tcs.model.datastandardization;

public abstract class StandardizationCommonBean {

    protected abstract Integer length();

    // 请求byte字节的大小
    protected int length;

    protected String message;

    protected int errorCode;

    public StandardizationCommonBean(int length, String message, int errorCode) {
        this.length = length;
        this.message = message;
        this.errorCode = errorCode;
    }

    public StandardizationCommonBean() {}

    public int getLength() {
        return length;
    }

    public String getMessage() {
        return message;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    @Override
    public String toString() {
        return "StandardizationCommonBean{" +
                "length=" + length +
                ", message='" + message + '\'' +
                ", errorCode=" + errorCode +
                '}';
    }
}
